﻿using System.Windows.Forms;

namespace BattleBuddyplug
{  // LuckyYiFarming
    public partial class configForm
    {
        public void LuckyYiFarmingInit()
        {

            BattleBuddy._QuickSettingsNames.Add("Lucky Yi farming");
            BattleBuddy._QuickSettingsDescriptions.Add("Enables Combat Bot, puts Lucky Yi on the whitelist" +System.Environment.NewLine+"Start this close to lucky yi");

            BattleBuddy._QuickSettingsFunctions.Add("LuckyYiFarmingExecute");
        }

        public void LuckyYiFarmingExecute()
        {
            //EnablePlugin("PetArea");
            SetBotBase("combat bot");


            BattleBuddy._MySettings.AboveLevel = 5;
            BattleBuddy._MySettings.AdFactor = 2;
            BattleBuddy._MySettings.BelowLevel = 3;
            BattleBuddy._MySettings.DisFactor = 2;
            BattleBuddy._MySettings.Distance = 300;
            BattleBuddy._MySettings.DoPreCombatSwapping = true;
            BattleBuddy._MySettings.DoPVP = false;
            BattleBuddy._MySettings.ForfeitIfNotInteresting = false;
            BattleBuddy._MySettings.GetRarity = 2;
            BattleBuddy._MySettings.HPFactor = 10;
            BattleBuddy._MySettings.LevelFactor = 2;
            BattleBuddy._MySettings.MinPetsAlive = 1;
            BattleBuddy._MySettings.PVPMaxTime = 0;
            BattleBuddy._MySettings.PVPMinTime = 0;
            BattleBuddy._MySettings.UseBandagesToHeal = 0;

            BattleBuddy._MySettings.UseBlackList = false;
            BattleBuddy._MySettings.UseHealSkill = 1;
            BattleBuddy._MySettings.UseRatingSystem = true;
            BattleBuddy._MySettings.UseWhiteList = true;
            BattleBuddy._MySettings.PetOrder = "2,3,1";

            string addwhitelist = "lucky yi";
            var item = lstAttackOnlyItems.FindString(addwhitelist);
            if (item == ListBox.NoMatches)
            {
                lstAttackOnlyItems.Items.Add(addwhitelist);
            }
            WhitelistSave();
        }


    }
}
